#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
int main() {
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	
	LTPrint(plist);

	LTPopBack(plist);
	LTPrint(plist);

	LTPushFront(plist, 10);
	LTPushFront(plist, 20);
	LTPrint(plist);

	int ret = LTSize(plist);
	printf("%d\n", ret);

	LTNode* pos = LTFind(plist, 20);
	LTInsert(pos, 10 * 20);
	LTPrint(plist);

	LTErase(pos);
	LTPrint(plist);

	LTDestroy(plist);
	plist = NULL;
	return 0;
}